import request from "./request";
//type === 0    账号密码登录
//type === 1    微信一键登录
export default (type, data) => {
    if (type === 0) {
        return new Promise(request('/login', data, 'POST'))
    }
}